package com.chalk.service;


import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.chalk.model.Coach;

import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author glq
 * @since 2020-12-21
 */

public interface CoachService extends IService<Coach> {
    /**
     * 新增
     */
    public int addCoach(Coach entity);

    /**
     * 修改
     */
    public int updateCoach(Coach entity);

    /**
     * 删除
     */
    public int deleteCoach(Integer id);


    /**
     * 小程序-获取教练分页
     * @param map
     * @return
     */
    public Page<Coach> getCoachForPage(Map<String,Object>map);
}
